package com.byit.mapper;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.byit.domain.SysUser;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 后台用户表 Mapper 接口
 * </p>
 *
 * @author wangx
 * @since 2018-12-11
 */
@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {

    SysUser userLogin(String loginName);

    List<JSONObject> selectUserList(Page<SysUser> pageInfo, Map<String, Object> params);

    void delUserById(Map<String, Object> param);

    int selectUserByUserName(String loginName);

    void updateUserpwById(Map<String, Object> params);

}